<style>
	.searchBar label {
		width: auto;
		padding: 0;
	}
	.searchBar ul.searchContent li {
		margin-right: 20px;
	}
</style>
<form id="pagerForm" action="__URL__/index" method="post">
	<input type="hidden" name="pid" value="{$_REQUEST.pid}"/>
	<input type="hidden" name="pageNum" value="{$_REQUEST.pageNum}"/>
	<input type="hidden" name="numPerPage" value="{$_REQUEST.numPerPage}" />
	<input type="hidden" name="orderField" value="{$_REQUEST.orderField}" />
	<input type="hidden" name="orderDirection" value="{$_REQUEST.orderDirection}" />
	<volist name="_search" key="name" id="field">
		<input type="hidden" name="_search[{$key}]" value="{$field|safe}"/>
	</volist>
</form>

<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="__URL__/index" method="post">
			<div class="searchBar">
				<ul class="searchContent" style="height:100%;">
					<li>
						<label>abbr2：</label>
						<input type="text" style="width:80px;" name="_search[abbr2]" value="{$_REQUEST._search.abbr2}"/>
					</li>
					<li>
						<label>name：</label>
						<input type="text" style="width:80px;" name="_search[name]" value="{$_REQUEST._search.name}"/>
					</li>
					<li>
						<label>状态：</label>
						{:Helper("Form")->name('_search[enabled]')->option($enabled)->value($_REQUEST['_search']['enabled'])->select()}
					</li>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
				</ul>
			</div>
		</form>
	</div>

	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="__URL__/add" target="navTab" mask="true"><span>新增</span></a></li>
				<li class="line">line</li>
				<li><a class="edit" href="__URL__/edit/id/{sid_user}" target="navTab" mask="true" warn="请选择操作对象"><span>编辑</span></a></li>
				<li class="line">line</li>
				<li><a title="是否禁用?" class="delete" href="__URL__/enabledUpdate/enabled/0" target="selectedTodo" posttype="string" rel="ids"><span>禁用</span></a></li>
				<li class="line">line</li>
				<li><a title="是否启用?" class="icon" href="__URL__/enabledUpdate/enabled/1" target="selectedTodo" posttype="string" rel="ids"><span>启用</span></a></li>
			</ul>
		</div>
		<table class="list" width="100%" layoutH="138">
			<thead>
			<tr>
				<th width="10"><input class="checkboxCtrl" type="checkbox" group="ids"></th>
				<th width="20" orderField="id" class="{:orderField('id','desc')}">id</th>
				<th width="10">abbr2</th>
				<th width="20">abbr3</th>
				<th width="20">name</th>
				<th width="20">状态</th>
			</tr>
			</thead>
			<tbody>
			<volist id="vo" name="list">
				<tr target="sid_user" rel="{$vo['id']}">
					<td><input type="checkbox" value="{$vo['id']}" name="ids"></td>
					<td>{$vo['id']}</td>
					<td>{$vo['abbr2']}</td>
					<td>{$vo['abbr3']}</td>
					<td>{$vo['name']}</td>
					<td>{$enabled[$vo['enabled']]}</td>
				</tr>
			</volist>
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="10" <eq name="numPerPage" value="10">selected</eq>>10</option>
					<option value="20" <eq name="numPerPage" value="20">selected</eq>>20</option>
					<option value="50" <eq name="numPerPage" value="50">selected</eq>>50</option>
					<option value="100" <eq name="numPerPage" value="100">selected</eq>>100</option>
					<option value="200" <eq name="numPerPage" value="200">selected</eq>>200</option>
				</select>
				<span>共{$totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
		</div>
	</div>
</div>